<template>
  <div class="container">
    <div class="content">
      <div class="top">
        <div class="header">
          <span class="title">审核状态</span>
        </div>
        <div class="desc"></div>
      </div>
      <div class="login" style="padding:30px 20px;margin-top:200px;font-size:18px;">
        <div>
          当前状态：
          <span style="color:red;">{{status}}</span>
          <div style="margin:10px 0;">
            <span v-if="status=='审核通过'">请点击按钮进入打款验证页面进行验证</span>
            <span v-if="status=='审核未通过'">请点击按钮进入资料填写页面进行修改</span>
            <span v-if="status=='审核中'">您的账号正在审核中，暂不可登陆！审核结果我们将以邮件通知您，请注意查收。</span>
          </div>
        </div>
        <a-button class="but-sty" v-if="status=='审核未通过'" type="primary" @click="gomodify">修改资料</a-button>
        <a-button
          class="but-sty"
          v-if="status=='审核通过'"
          type="primary"
          @click="goNext('/OrgRegister/step9')"
        >打款验证</a-button>
        <!-- <a-button type="primary" @click="goNext()">下一步</a-button> -->
      </div>
    </div>
  </div>
</template>

<script>
import AForm from "ant-design-vue/es/form/Form";
import ATabs from "ant-design-vue/es/tabs";
import GlobalFooter from "../../layouts/GlobalFooter";
import AFormItem from "ant-design-vue/es/form/FormItem";
import AInput from "ant-design-vue/es/input/Input";
import AIcon from "ant-design-vue/es/icon";
import AInputGroup from "ant-design-vue/es/input/Group";
import AButton from "ant-design-vue/es/button/button";
import ACol from "ant-design-vue/es/grid/Col";
import ARow from "ant-design-vue/es/grid/Row";
import ACheckbox from "ant-design-vue/es/checkbox/Checkbox";
import AAlert from "ant-design-vue/es/alert/index";

const ATabPane = ATabs.TabPane;

export default {
  name: "Login",
  components: {
    AAlert,
    ACheckbox,
    ACol,
    ARow,
    AButton,
    AInputGroup,
    AIcon,
    AInput,
    AFormItem,
    GlobalFooter,
    ATabPane,
    ATabs,
    AForm
  },
  data() {
    return {
      form: this.$form.createForm(this),
      logging: false,
      error: "",
      status: ""
    };
  },
  mounted() {
    console.log(this.$route.query.status);
    if (this.$route.query.status == "0") {
      console.log("审核中");
      this.status = "审核中";
    } else if (this.$route.query.status == "1") {
      console.log("审核通过");
      this.status = "审核通过";
    } else if (this.$route.query.status == "2") {
      console.log("审核未通过");
      this.status = "审核未通过";
    } else {
    }
  },
  methods: {
    handleChange(value) {
      console.log(value);
    },
    goNext(value) {
      this.$router.push(value);
    },
    gomodify() {
      this.$router.push({
        path: "/OrgRegister/step5",
        query: { loginmodify: true }
      });
    }
  }
};
</script>

<style lang="less" scoped>
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: auto;
  background: #f0f2f5
    url("https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg")
    no-repeat center 110px;
  background-size: 100%;
  .content {
    padding: 32px 0;
    flex: 1;
    @media (min-width: 768px) {
      padding: 112px 0 24px;
    }
    .top {
      text-align: center;
      .header {
        height: 44px;
        line-height: 44px;
        a {
          text-decoration: none;
        }
        .logo {
          height: 44px;
          vertical-align: top;
          margin-right: 16px;
        }
        .title {
          font-size: 33px;
          color: rgba(0, 0, 0, 0.85);
          font-family: "Myriad Pro", "Helvetica Neue", Arial, Helvetica,
            sans-serif;
          font-weight: 600;
          position: relative;
          top: 2px;
        }
      }
      .desc {
        font-size: 14px;
        color: rgba(0, 0, 0, 0.45);
        margin-top: 12px;
        margin-bottom: 40px;
      }
    }
    .login {
      background-color: #ccc;
      border: 1px solid #ccc;
      border-radius: 20px;
      width: 368px;
      margin: 0 auto;
      @media screen and (max-width: 576px) {
        width: 95%;
      }
      @media screen and (max-width: 320px) {
        .captcha-button {
          font-size: 14px;
        }
      }
      .icon {
        font-size: 24px;
        color: rgba(0, 0, 0, 0.2);
        margin-left: 16px;
        vertical-align: middle;
        cursor: pointer;
        transition: color 0.3s;

        &:hover {
          color: #1890ff;
        }
      }
    }
  }
}
.but-sty {
  width: 120px;
  font-size: 16px;
}
</style>
